package com.self.finance.feign;

import com.self.api.feign.OAuth2FeignConfig;
import com.self.finance.dto.CoinDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @version v1.0
 * @ClassName: feign
 * @Description:
 * @Author: Mac
 * @Date: 2022/8/14 17:28
 */
@FeignClient(name = "finance-service",configuration = OAuth2FeignConfig.class)
public interface FinanceFeignClient {

    @PostMapping("/coins/list")
    List<CoinDto> findCoins(@RequestBody List<Long> ids);


}
